package cn.edu.xjtu.data_structure.chapter02_stack_queue.queue;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/9/14 21:25
 */
public class AQueueTest {
    public static void main(String[] args) {
        LQueue<Integer> test = new LQueue<>();
        test.print();
        test.enqueue(1);
        test.enqueue(21);
        test.enqueue(3);
        test.enqueue(43);
        test.enqueue(3);
        test.enqueue(7);
        System.out.print("enqueue: ");
        test.print();
        System.out.println("the number of queue elements: " + test.size());
        System.out.println("get the front element: "+test.firstValue());
        test.dequeue();
        test.dequeue();
        System.out.print("dequeue two elements: ");
        test.print();
    }
}
